Skip to content

尝试修改注册方式#8

Open
CyJaySong wants to merge 2 commits intoMobClub:masterfrom
CyJaySong:master
Open

尝试修改注册方式#8
CyJaySong wants to merge 2 commits intoMobClub:masterfrom
CyJaySong:master

Conversation

@CyJaySong
Copy link

@CyJaySong CyJaySong commented Mar 24, 2020

MobSDK 初始化 App Key 和 App Secret 跟 mobpush 一样,只要在 android/app/build.gradle 配置就好

@CyJaySong CyJaySong closed this Mar 24, 2020
@CyJaySong CyJaySong reopened this Mar 24, 2020
@CyJaySong
Copy link
Author

大佬,覆盖了之后在 android/app/build.gradle 提示报错 Could not find method MobSDK() for arguments [build_a10mzg1kuqtf23a16xbd6ni42$_run_closure5@9a64bb] on project ':app' of type org.gradle.api.Project.

你的build.gradle 怎么写的

@CyJaySong
Copy link
Author

`buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:3.5.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.mob.sdk:MobSDK:+'
}

}

allprojects {
repositories {
google()
jcenter()
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
delete rootProject.buildDir
}

`

你没有导入mobSdk呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant